﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace SuiYuan.UI.Controls.Sliders
{

    /// <summary>
    /// 此功能来自 会弹琴的蟋蟀 / Layui-WPF 
    /// https://gitee.com/ywk1916b/Layui-WPF
    /// </summary>
    public class LaySlider : Slider
    {
        /// <summary>
        /// 气泡提示方向
        /// </summary>
        public SliderTipsPosition TipsPosition
        {
            get { return (SliderTipsPosition)GetValue(TipsPositionProperty); }
            set { SetValue(TipsPositionProperty, value); }
        }

        public static readonly DependencyProperty TipsPositionProperty = DependencyProperty.Register("TipsPosition", typeof(SliderTipsPosition), typeof(LaySlider), new PropertyMetadata(SliderTipsPosition.No));
    }

    /// <summary>
    /// 滑块气泡提示位置
    /// </summary>
    public enum SliderTipsPosition
    {
        /// <summary>
        /// 无 
        /// </summary>
        No,
        /// <summary>
        /// 上
        /// </summary>
        Top,
        /// <summary>
        /// 左
        /// </summary>
        Left,
        /// <summary>
        /// 右
        /// </summary>
        Right,
        /// <summary>
        /// 下
        /// </summary>
        Bottom
    }
}
